<?php

namespace app\index\validate;
use think\Validate;

class Info extends Validate
{
    protected $rule = [
        'name'          => 'require|chsDash',
        'nick_name'     => 'chsDash',
        'email'         => 'email'
    ];

    protected $message = [
        'name.require'              => '请输入编号',
        'name.chsDash'              => '编号只能有字母、数字和下划线',
        'nick_name.chsDash'         => '昵称只能有汉字、字母、数字和下划线',
        'email.email'               => '电子信箱不合法'
    ];
}